import App from './App'
import Vue from 'vue'
import uView from "@/uni_modules/uview-ui/index";
Vue.use(uView)
App.mpType = 'app'

import store from '@/store/index'
import Cache from '@/common/utils/cache'
import verify from '@/common/utils/verify'
import utils from '@/common/utils/index.js'
import toast from '@/common/utils/toast.js'
import {EventBus} from '@/common/utils/eventBus.js'
import appMixins from '@/mixins/app'
import ZPMixin from '@/uni_modules/z-paging/components/z-paging/js/z-paging-mixin'
Vue.mixin(ZPMixin)
Vue.mixin(appMixins)
import share from '@/common/utils/share.js'
Vue.mixin(share)
Vue.prototype.$bus = EventBus
Vue.prototype.$cache = Cache
Vue.prototype.$store = store
Vue.prototype.$verify = verify
Vue.prototype.$utils = utils
Vue.prototype.$toast = toast
Vue.prototype.$globalData = {
	screenHeight: 0,
	navHeight: 0
}
Vue.config.productionTip = false


// uni.$u.config.unit = 'rpx'
uni.$u.props.checkbox.iconSize = 21
uni.$u.props.checkbox.size = 28
uni.$u.props.checkbox.activeColor = '#FF4C00'
uni.$u.props.radio.iconSize = 21
uni.$u.props.radio.size = 28
uni.$u.props.radio.activeColor = '#FF4C00'
uni.$u.props.radioGroup.activeColor = '#FF4C00'
uni.$u.props.loadmore.fontSize = '24rpx'
uni.$u.props.loadmore.height = '80rpx'
uni.$u.props.loadmore.marginBottom = '0'
uni.$u.props.loadmore.iconSize = '24rpx'
uni.$u.props.empty.textSize = '28rpx'
uni.$u.props.empty.iconSize = '180rpx'
uni.$u.props.loadmore.nomoreText = '~没有更多了~'
uni.$u.props.tabbar.zIndex = '1000'
uni.$u.props.popup.duration = 150
uni.$u.props.modal.duration = 150

uni.$zp = {
  config: {
    'default-page-size': 15,
    'empty-view-text': '暂无数据',
    'loading-more-no-more-text': '到底了',
    'show-loading-more-no-more-line': false,
    'loading-more-title-custom-style': {'font-size': '28rpx', 'margin-top': '10rpx'},
  }
}
const app = new Vue({
  ...App,
  store
})
app.$mount()
